<?php

namespace app\validate;

use app\BaseValidate;

class SysIntro extends BaseValidate
{
    protected $rule = [
        'title'  => 'require|length:2,20|unique:task',

    ];

    protected $message  =   [
        'title.require' => '文章标题必须填写',
        'title.length' => '文章标题长度2至20个字符',
        'title.unique' => '文章标题不能重复'

    ];
}
